package taske15;

import java.util.Scanner;

public class Task15_01 {
    public static void main(String[] args) {
//       1.键盘输入两个数
//       2.调用方法来返回最大值
//       3.输出最大值
    System.out.println("请输入两个数");
        Scanner scanner=new Scanner(System.in);
        int num1=scanner.nextInt();
        int num2=scanner.nextInt();
    int result = max(num1,num2);
    System.out.println("最大值是："+result);
    }
    private static  int max(int num1,int num2){
        int max=num1>num2?num1:num2;
        return  max;
        /*if(num1>-num2){
            return  num1;
        }else{
            return  num2;
        }*/
    }
}
